home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue10.arc / TVWREORD.C < prev    next >
C/C++ Source or Header  |  1988-08-13  |  1KB  |  32 lines

  1. /*=======================================================*/
  2. /*  TVWREORD.C                                           */
  3. /*                                                       */
  4. /*  (c) Copyright 1988 Ralf Brown  All Rights Reserved   */
  5. /*  May be freely copied for noncommercial use, so long  */
  6. /*  as this copyright notice remains intact, and any     */
  7. /*  changes are marked in the comment blocks preceding   */
  8. /*  functions.                                           */
  9. /*=======================================================*/
  10.  
  11. #include "tvapi.h"
  12. #include "tvstream.h"
  13.  
  14. /*=======================================================*/
  15. /* TVwin_reorder  reorder which windows appear on top of */
  16. /*                others                                 */
  17. /*   Ralf Brown 4/4/88                                   */
  18. /*=======================================================*/
  19. /* this function must be "cdecl", so that the args are on */
  20. /* the stack in the right order to simply pass on to DV   */
  21. /*========================================================*/
  22.  
  23. void cdecl TVwin_reorder(OBJECT win,unsigned first,...)
  24. {
  25.    static BYTE stream[] = { S_MANAGER(5), MS_REORDER, 0,0,0,0 } ;
  26.  
  27.    *((unsigned far **)(stream+5)) = (unsigned far *)&first ;
  28.    TVwin_stream(win,stream) ;
  29. }
  30.  
  31. /* End of TVWREORD.C */
  32.